<template>
  <view>
      <view class="time_wrap">
          <view class="time_item" v-for="(item,index) in list" :key="index">
            <view>{{item}}</view>
          </view>
      </view>
  </view>
</template>

<script>
import moment from "moment";
moment.locale("zh-cn");
export default {
    onLoad(){
        this.getList();
    },
    methods:{
        getList(){
            this.request({
                url:this.apiServer + "/user/findUserLoginHistoryById?id="+uni.getStorageSync("user").id
            }).then(res=>{
                this.list = res.data;
            })
        }
    },
    data(){
        return{
            list:[],
        }
    }
}
</script>

<style lang="scss" scoped>
.time_wrap{
    .time_item{
        color: orchid;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

</style>